package com.liushao.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
//import org.springframework.messaging.converter.MessageConverter;
import org.springframework.amqp.support.converter.*;

/**
 * @program: untitled1
 * @ClassName MQConfig
 * @description:
 * @author: 陈修华
 * @create: 2025−01-22 09:47
 * @Version 1.0
 **/
@Configuration
public class MQConfig {

    @Bean
    public MessageConverter messageConverter(){
        //json字符串转换器
        return  new Jackson2JsonMessageConverter();
    }
}
